<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta name="generator" content="PHPDoctor 2RC4 (http://peej.github.com/phpdoctor/)">
<meta name="when" content="Fri, 23 Jul 2010 20:16:23 +0000">

<link rel="stylesheet" type="text/css" href="../stylesheet.css">
<link rel="start" href="../overview-summary.html">

<title>HR_notificationApi.class.php (Hosting Reborn API PHP Library)</title>

</head>
<body id="file" onload="parent.document.title=document.title;">

<div class="header">
<h1>Hosting Reborn API PHP Library</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li>Package</li><li>Class</li><li>Tree</li><li><a href="../overview-files.html">Files</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../source/hr_notificationapi.class.php.html" target="_top">No frames</a>
</div>
<hr>

<h1>HR_notificationApi.class.php</h1>
<hr>

<a name="line1"></a><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<a name="line2"></a><span style="color: #009933; font-style: italic;">/** An interface to the Hosting Reborn API notification functions.
<a name="line3"></a> * @package com\hostingreborn\api
<a name="line4"></a> * @link https//api.hostingreborn.com/docs/functions/notification/
<a name="line5"></a> *
<a name="line6"></a> * @author      Jon Cram &lt;jon@hostingreborn.com&gt;
<a name="line7"></a> * @copyright   https://api.hostingreborn.com/code/copyright/
<a name="line8"></a> * @license     https://api.hostingreborn.com/code/license/
<a name="line9"></a> * @version     1.0
<a name="line10"></a> *
<a name="line11"></a> * $Date: 2010/07/04 22:51:02 $
<a name="line12"></a> * $Revision: 2c423d307a13 $
<a name="line13"></a> *
<a name="line14"></a> *
<a name="line15"></a> */</span>
<a name="line16"></a>&nbsp;
<a name="line17"></a><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HR_api.class.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a name="line18"></a>&nbsp;
<a name="line19"></a><span style="color: #000000; font-weight: bold;">class</span> HR_notificationApi <span style="color: #000000; font-weight: bold;">extends</span> HR_api <span style="color: #009900;">&#123;</span>
<a name="line20"></a>&nbsp;
<a name="line21"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line22"></a>    <span style="color: #666666; font-style: italic;">/* Attributes                                                              */</span>
<a name="line23"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line24"></a>&nbsp;
<a name="line25"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line26"></a>    <span style="color: #666666; font-style: italic;">/* Constructors                                                            */</span>
<a name="line27"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line28"></a>&nbsp;
<a name="line29"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line30"></a>    <span style="color: #666666; font-style: italic;">/* Public methods                                                          */</span>
<a name="line31"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line32"></a>&nbsp;
<a name="line33"></a>&nbsp;
<a name="line34"></a>    <span style="color: #009933; font-style: italic;">/**
<a name="line35"></a>     * @link http://api.hostingreborn.com/docs/functions/notification/verify/
<a name="line36"></a>     *
<a name="line37"></a>     * @param string $type
<a name="line38"></a>     * @param string $notificationKey
<a name="line39"></a>     * @param string $recipient
<a name="line40"></a>     * @param string $datetime
<a name="line41"></a>     * @return bool 
<a name="line42"></a>     */</span>
<a name="line43"></a>    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> verify<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$notificationKey</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$recipient</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span> <span style="color: #000088;">$datetime</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<a name="line44"></a>        <span style="color: #666666; font-style: italic;">/*
<a name="line45"></a>            Exceptions thrown by API:
<a name="line46"></a>                - database (handled internally by API)
<a name="line47"></a>                - system (handled internally by API)
<a name="line48"></a>        */</span>
<a name="line49"></a>&nbsp;
<a name="line50"></a>        <span style="color: #000088;">$queryString</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/http_build_query"><span style="color: #990000;">http_build_query</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
<a name="line51"></a>		<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$type</span><span style="color: #339933;">,</span>
<a name="line52"></a>		<span style="color: #0000ff;">'notification_key'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$notificationKey</span><span style="color: #339933;">,</span>
<a name="line53"></a>		<span style="color: #0000ff;">'recipient'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$recipient</span><span style="color: #339933;">,</span>
<a name="line54"></a>		<span style="color: #0000ff;">'datetime'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$datetime</span>
<a name="line55"></a>        <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a name="line56"></a>&nbsp;
<a name="line57"></a>        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">read</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'notification/verify/?'</span><span style="color: #339933;">.</span><span style="color: #000088;">$queryString</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">wasSuccessful</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<a name="line58"></a>    <span style="color: #009900;">&#125;</span>
<a name="line59"></a>&nbsp;
<a name="line60"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line61"></a>    <span style="color: #666666; font-style: italic;">/* Private methods                                                         */</span>
<a name="line62"></a>    <span style="color: #666666; font-style: italic;">/***************************************************************************/</span>
<a name="line63"></a>&nbsp;
<a name="line64"></a><span style="color: #009900;">&#125;</span>
<a name="line65"></a>&nbsp;
<a name="line66"></a><span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<div class="header">
<h1>Hosting Reborn API PHP Library</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li>Package</li><li>Class</li><li>Tree</li><li><a href="../overview-files.html">Files</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>

<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../source/hr_notificationapi.class.php.html" target="_top">No frames</a>
</div>
<hr>

<p id="footer">This document was generated by <a href="http://peej.github.com/phpdoctor/">PHPDoctor: The PHP Documentation Creator</a></p>

</body>

</html>